#!/usr/bin/python3

#===============================================================================
# Get 3 "random" numbers

# Constants
a = 3
c = 7
m = 25

# Set the Seed to the current epoch time
X_0 = 10

# Generating 3 Pseudo-Random Numbers using the LCG method
X_1 = (a * X_0 + c) % m
X_2 = (a * X_1 + c) % m
X_3 = (a * X_2 + c) % m

print(X_1, X_2, X_3)
#===============================================================================

#===============================================================================
# Get 3 "random" numbers by setting the seed to the time

# Import the "time()" function
from time import time

# Constants
a = 3
c = 7
m = 25

# Set the Seed to the current epoch time in whole seconds
X_0 = int( time() )

# Generating 3 Pseudo-Random Numbers using the LCG method
X_1 = (a * X_0 + c) % m
X_2 = (a * X_1 + c) % m
X_3 = (a * X_2 + c) % m

print(X_1, X_2, X_3)
#===============================================================================
